/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rw.ac.kiosc.jdbc.school.dao;

import java.util.List;
import rw.ac.kiosc.jdbc.school.orm.User;

/**
 *
 * @author antoine
 */
public interface UserDAO {

    public User saveUser(User user);

    public User updateUser(User user);

    public User saveOrUpdateUser(User user);

    public boolean deleteUser(User user);

    public User getUserById(int userId);

    public List<User> getAllUsers();

    public User getUserByUsername(String username);

    public List<User> getUsersByName(String name);
}
